<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
	String contextPath = request.getContextPath();
%>  

<script>
function selectAll(){
 var checkAll=document.getElementsByName("checkAll")[0];
 var check;
  if(checkAll.checked)
   check=true;
  else
   check=false;
 
 var objElements = document.getElementsByName("checkchoice");
 var chboxSize=objElements.length;
  
   for(var i = 0; i<chboxSize;i++)
   {
    objElements[i].checked=check;
   }
  }
</script>



<form action="<%=contextPath %>/admin/list.do" name="search" method="get" onsubmit="return searchCheck()">
<!-- //Wrapper -->
<div id="wrapper">

<!-- Contenter_Sub -->

<div id="container_sub">
<!-- Content_List -->
		
<div id="sub_page_bg1"></div>
<!-- Sub Page Background -->

<div id="content_list">
  <div class="title">
	
	<div class='sub_title'>
			<ul>
			<li>관리자 Page</li>
			<li class='stitle'>관리자!!</li>
		</ul>
	</div>
	<div class='navig'>
		<ul>
			<li class='frst'><img src='../image/all/home_icon.png' align='absmiddle' width='13' height='13'><a href='/wedding/index.do'>HOME</a></li>
			<li>관리자 페이지</li>
		</ul>
	</div>
	<!-- sub_menu-->
	<ul class='sub_menu'>		
		<ul class="sub_tab">
			<li><a class='over' href="<%=contextPath%>/admin/list.do">회원관리</a></li>
			<li><a class='rollover' href="<%=contextPath%>/admin/paymentList.do">결제관리</a></li>
			<li><a class='rollover' href="<%=contextPath%>/matching/proposeManager.do">프로포즈관리</a></li>
		</ul>
	</ul>
	 <div>
		<br>
		<nav id ="bo_cate">
			<ul id="bo_cate_ul">
            	<li><a href="#" id="bo_cate_on">회원리스트</a></li>
            	<li><a href="<%=contextPath%>/admin/sendSmsList.do">보낸쪽지함</a></li>
            </ul>
      	</nav>
	</div>
</div>


		
<script language="JavaScript"> 
function iFrmReSize() { 
try{ 
var objBody = ifrm.document.body; 
var objFrame = document.all["ifrm"]; 
ifrmHeight = objBody.scrollHeight + (objBody.offsetHeight - objBody.clientHeight); 

objFrame.style.height = ifrmHeight 
objFrame.style.width = '100%' 
}catch(e){} 
} 
function init_iframe() { 
iFrmReSize(); 
setTimeout("init_iframe()",100) 
}
$(document).ready(function() {
	init_iframe();
});
</script>

<div class="content_title">
	<h1><span>MEMBER</span><br>search</h1>
	<p><br>━</p>
	<span class="content_title_s"><strong>member search</strong><br><br>회원을검색<br>강퇴 or 쪽지</span>
</div>

<div class="great_date">
	<h2>회원관리 or 검색 or 쪽지 or 강퇴</h2>
	<p>
	 <div class="bo_fx">
        <div id="bo_list_total">
            <span>Total${count}건</span>
            ${currentPage}페이지 
        </div>
            <ul class="btn_bo_user" style="float:right"> 
             </ul>     
     </div>
 
    <!-- 본격적인 게시판 리스트 -->
 <div class="tbl_head01">
    <table>
    <caption>멤버리스트 테스트</caption>
     <thead>
      <tr>
 		<th scope="col" >id</th>
        <th scope="col">email</th>
        <th scope="col" >이름</th>
        <th scope="col" >생일</th>
       </tr>
     </thead>
     
     <tbody>
      <c:forEach var="member" items="${list}" >
      <tr>
        <td ><a href="<%=contextPath%>/adminSms/write.do?id=${member.id}" >${member.id}</a><c:set var="id" value="${member.id}"/></td>  
        <td > 
          ${member.email}
        </td>
        
        <td ><span class="sv_member">${member.name}</span></td>
        <td >${member.birth}</td>
        </tr>
       </c:forEach>
       
      <c:if test="${count == 0}">
      <tr>
		<td colspan="5" class="align-center">등록된 게시물이 없습니다.</td>
	  </tr>
	   </c:if>
     </tbody>
   </table>
</div>
 <div class="bo_fx">
     <ul class="btn_bo_user" style="float:right">  
      </ul>
 </div>

</div>

<!-- 페이징처리 -->
<table>
<c:if test="${count > 0}">
<nav class="pg_wrap">

	<span class="pg">
	${pagingHtml} </span>
	  
</nav>
</c:if>
</table>
<!-- 게시판 검색 시작 { -->
<fieldset id="bo_sch" >
    <legend>게시물 검색</legend>
	<!-- 히든값뭔지몰라서주석 -->
      <label for="sfl" class="sound_only">검색대상</label>
    

    id<input type="text" name="idKeyWord" value=""    size="15" maxlength="15">
     이름<input type="text" name="nameKeyWord" value=""    size="15" maxlength="15">
   지역<select name="region">
						<option value="1">서울</option>
						<option value="2">인천</option>
						<option value="3">대전</option>
						<option value="4">광주</option>
						<option value="5">대구</option>
						<option value="6">울산</option>
						<option value="7">부산</option>
						<option value="8">경기</option>
						<option value="9">강원</option>
						<option value="10">충북</option>
						<option value="11">충남</option>
						<option value="12">전북</option>
						<option value="13">전남</option>
						<option value="14">경북</option>
						<option value="15">경남</option>
						<option value="16">제주</option>
					</select>
<input type="button" value="쪽지쓰기" onclick="location.href='<%=contextPath%>/adminSms/write.do?'">
					
 	<button id ="쪽지쓰기"  ></button>
   <input type="submit" value="검색" class="btn_submit">
</fieldset>
		<!-- <div id="blank">&nbsp;</div> -->
		</div>
		<!-- //content_list -->

	</div>
	<!-- //contenter_sub -->

</div>
<!-- //wrapper -->

<hr>
</form>
